package com.joelaws.prototype.client.meeting;

import java.io.Serializable;

public class ActionInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	private String question;

	private String[] choices;

	private MeetingType type;

	public ActionInfo() {

	}

	public ActionInfo(String question, String[] choices, MeetingType type) {
		this.question = question;
		this.choices = choices;
		this.type = type;
	}

	public String getQuestion() {
		return question;
	}

	public String[] getChoices() {
		return choices;
	}

	public MeetingType getType() {
		return type;
	}

	public void setType(MeetingType type) {
		this.type = type;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public void setChoices(String[] choices) {
		this.choices = choices;
	}

	public String toString() {
		StringBuilder builder = new StringBuilder();

		builder.append(question);
		builder.append("=");
		for (String choice : choices) {
			builder.append(choice);
			builder.append(":");
		}

		return builder.toString();
	}
}
